 /*class Animal{
    String name;
    int age;
    public void eat(){
        System.out.println(name + "正在吃饭");
    }
    public void sleep(){
        System.out.println(name + "正在睡觉");
    }
}
class Dog extends Animal{
    void bark(){
        System.out.println(name + "汪汪汪~~");
    }
        }

public class Test {
    public static void main(String[] args) {
        Dog dog= new Dog();
        System.out.println(dog.name);
        System.out.println(dog.age);
    }

}*/



/*class Date{
    public int year;
    public int month;
    public int day;
    public void setDate(int y,int m,int d){
        year = y;
        month = m;
        day = d;
    }
    public void PrintDat(){
        System.out.println(year + "/"+month + "/" + day );
    }

}

public class Test{
    public static void main(String[] args) {
        Date d1 = new Date();
        d1.setDate(2023,5,20);
        d1.PrintDat();
    }
}*/

/*class PetDog{
    public String name;
    public String color;
    public void barks(){
        System.out.println(name+":汪汪汪~~~");
    }
    public void wag(){
        System.out.println(name+":摇尾巴~~~");
    }


}
public class Test {
    public static void main(String[] args) {
        PetDog dog1 = new PetDog();
        dog1.name = "阿黄";
        dog1.color = "黑色";
        dog1.barks();
        dog1.wag();

        PetDog dog2 = new PetDog();
        dog2.name = "阿花";
        dog2.color = "白色";
        dog2.barks();
        dog2.wag();


    }
}
*/